<template>
	<view class="page-fade-in" :style="{opacity: pageOpc}">
		<template v-if="pageOpc">
			<view class="content">
				<view class="date">{{operatingInfo.time}}</view>
				<view class="balance-box flexWrap">
					<view class="balance-left flexWarpColumn">
						<view class="balance">{{operatingInfo.tatal_income||'0.00'}}</view>
						<view>总收入</view>
					</view>
					<view class="balance-image">
						<image src="/static/index/goldcoin.png"></image>
					</view>
				</view>
				<view class="shop-info-box">
					<view class="info-item flexWrap">
						<view>已结账订单数量</view>
						<view class="num">{{operatingInfo.order_count||'0.00'}}</view>
					</view>
					<view class="info-item flexWrap">
						<view>可提现金额</view>
						<view class="num">¥ {{operatingInfo.cashout_amount||'0.00'}}</view>
					</view>
					<view class="info-item flexWrap">
						<view>充值收入</view>
						<view class="num">¥ {{operatingInfo.recharge_money||'0.00'}}</view>
					</view>
					<!-- <view class="info-item flexWrap">
						<view>优惠券扣除</view>
						<view>¥ {{operatingInfo.yhjqk||'0.00'}}</view>
					</view>
					<view class="info-item flexWrap">
						<view>余额扣除</view>
						<view>¥ {{operatingInfo.ye_sum||'0.00'}}</view>
					</view> -->
					<view class="info-item flexWrap">
						<view>订单收入</view>
						<view class="num">¥ {{operatingInfo. order_online_amount||'0.00'}}</view>
					</view>
					<view class="info-item flexWrap">
						<view>美团收入</view>
						<view class="num">¥ {{operatingInfo.tuan_amount||'0.00'}}</view>
					</view>
					<view class="info-item flexWrap">
						<view>抖音收入</view>
						<view class="num">¥ {{operatingInfo.douyin_amount||'0.00'}}</view>
					</view>
					<!-- <view class="info-item flexWrap">
						<view>通卡收入</view>
						<view class="num">¥ {{operatingInfo.card_amount||'0.00'}}</view>
					</view> -->
					<!-- <view class="info-item flexWrap">
						<view>小程序退款</view>
						<view>¥ {{operatingInfo.refund_money||'0.00'}}</view>
					</view>
					<view class="info-item flexWrap">
						<view>美团退款</view>
						<view>¥ {{operatingInfo.refund_money||'0.00'}}</view>
					</view> -->
					<view class="info-item flexWrap">
						<view>系统服务费</view>
						<view class="num">¥ {{operatingInfo.platform_commission||'0.00'}}</view>
					</view>
					<view class="info-item flexWrap">
						<view>银行手续费</view>
						<view class="num">¥ {{operatingInfo.bank_amount||'0.00'}}</view>
					</view>
				</view>
			</view>
		</template>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pageOpc:0,
				operatingInfo:{}
			}
		},
		onLoad() {
			this.operatingInfo=uni.getStorageSync('operatingInfo')
			console.log(this.operatingInfo)
		},
		onReady(){
			setTimeout(() => {
				this.pageOpc=1
			}, 100)
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.content{
		padding: 0 36upx;
	}
	.date{
		font-size: 32upx;
		font-family: PingFang SC;
		font-weight: 500;
		line-height: 60upx;
		color: #6E6E6E;
		text-align: center;
		margin: 30upx auto;
	}
	.balance-box{
		position: relative;
		.balance-left{
			width: 100%;
			height: 140upx;
			background: #EEC162;
			border-radius: 16upx;
			font-size: 24upx;
			font-family: PingFang SC;
			font-weight: 400;
			line-height: 34upx;
			color: #917A4B;
			justify-content: center;
			padding-left: 40upx;
			.balance{
				font-size: 48upx;
				font-family: PingFang SC;
				font-weight: 500;
				line-height: 66upx;
				color:#333333;
			}
		}
		.balance-image{
			width: 180upx;
			height: 180upx;
			flex:none;
			position: absolute;
			right: 0;
		}
	}
	.shop-info-box{
		margin-top: 30upx;
		border-top: 1upx solid #E3E3E3;
		.info-item{
			font-size: 28upx;
			font-family: PingFang SC;
			font-weight: 400;
			line-height: 40upx;
			color: #6E6E6E;
			padding: 30upx 0;
			border-bottom: 1upx solid #E3E3E3;
			.num{
				color: #333333;
			}
		}
	}
</style>
